package com.sg.dto.biz.pbff.common;

import com.wicket.okrpbff.common.annotations.TreeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffMidBasicCheckTargetDutyDto
 * @使用场景
 */
@Data
public class BffMidBasicCheckTargetDutyDto implements Serializable {

    /**
     * 指标ID
     */
    @TreeType("id")
    @ApiModelProperty("指标ID")
    private String objectiveId;

    /**
     * 组织内部门身份名称
     */
    @ApiModelProperty("组织内部门身份名称")
    private String virtualOrgDeptStatus;

    /**
     * 虚拟组织下部门ID
     */
    @ApiModelProperty("虚拟组织下部门ID")
    private String deptId;

    /**
     * 部门简称
     */
    @ApiModelProperty("部门简称")
    private String deptShortName;

    /**
     * 组内职务名称
     */
    @ApiModelProperty("组内职务名称")
    private String virtualOrganizationPosition;

    /**
     * 虚拟组织成员就职记录ID
     */
    @ApiModelProperty("虚拟组织成员就职记录ID")
    private String virtualOrgInductionRecordId;

    /**
     * 个人账号
     */
    @ApiModelProperty("个人账号")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffMidBasicCheckTargetDutyDto that = (BffMidBasicCheckTargetDutyDto) o;
        return objectiveId == that.objectiveId && virtualOrgDeptStatus == that.virtualOrgDeptStatus && deptId == that.deptId && deptShortName == that.deptShortName && virtualOrganizationPosition == that.virtualOrganizationPosition && virtualOrgInductionRecordId == that.virtualOrgInductionRecordId && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), objectiveId, virtualOrgDeptStatus, deptId, deptShortName, virtualOrganizationPosition, virtualOrgInductionRecordId, userId, userFace, idCardName, nickName);
    }

}
